home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Container Common / dllinitialize.cpp < prev    next >
C/C++ Source or Header  |  1997-01-03  |  412b  |  21 lines

  1.  
  2. extern "C" 
  3. {
  4. OSErr pascal DllInitializationRoutine(CFragInitBlockPtr initBlkPtr);
  5.  
  6. short gResFile;                     // Refnum of the plugin’s resource file
  7. }
  8.  
  9.  
  10. OSErr pascal
  11. DllInitializationRoutine(CFragInitBlockPtr initBlkPtr)
  12. {
  13. //    __initialize(initBlkPtr);
  14.  
  15.     //    open up the resource fork of the dll and save it off
  16.     gResFile = ::FSpOpenResFile(initBlkPtr->fragLocator.u.onDisk.fileSpec, fsRdPerm);
  17.  
  18.     return noErr;
  19. }
  20.  
  21.